'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);

  // 配置
  require('./router/config')(app);
  // 用户中心
  require('./router/user')(app);
  // 帖子
  require('./router/topic')(app);
  // 评论
  require('./router/comment')(app);
  // 消息
  require('./router/message')(app);
};
